//
//  ownerCollectionViewCell.m
//  SpiritWalk
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 王鑫. All rights reserved.
//

#import "ownerCollectionViewCell.h"

@implementation ownerCollectionViewCell

-(id)initWithFrame:(CGRect)frame{
    
    self=[super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

-(void)createView{
    
    self.ownerCollectionTable=[[UITableView alloc] initWithFrame:self.frame style:UITableViewStylePlain];
    UIImageView *imageView=[[UIImageView alloc] initWithFrame:self.bounds];
    imageView.image=[UIImage imageNamed:@"铁塔.jpg"];
    
    self.ownerCollectionTable.backgroundView=imageView;
    [self.contentView addSubview:self.ownerCollectionTable];
    
    
}
//-(void)layoutSubviews{
//    
//    [super layoutSubviews];
//     self.ownerCollectionTable.frame=self.frame;
//}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    
    [super applyLayoutAttributes:layoutAttributes];
    
    self.ownerCollectionTable.frame=self.bounds;
}
@end
